import request from "@/utils/request";
import { AxiosPromise } from "axios";
import {OrderQuery} from "./types";

/**
 * 标准订单分页数据
 *
 * @param queryParams
 */
export function getOrderPage(
	queryParams: OrderQuery
): AxiosPromise<PageResult<[]>> {
	return request({
		url: '/api/v1/order/page',
		method: 'get',
		params: queryParams
	});
}

/**
 * 标准订单字段列表
 *
 * @param queryParams
 */
export function getOrderColumnList(): AxiosPromise<[]> {
	return request({
		url: '/api/v1/order/columnList',
		method: 'get'
	});
}

